package com.framwork.config;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * @author ysw
 * @create 2019-12-03 14:15
 * @descreption
 **/
@Aspect
@Component
public class MyAspect {


    @Pointcut(value = "execution(* com.framwork.controller.*.*(..))")
    public void  pointCut(){

    }

    @After("pointCut()")
    public void after(){
        System.out.println("after");
    }

    @AfterReturning("pointCut()")
    public  void rAfter(){
        System.out.println("rAfter");
    }
}